package com.ra.landlord;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import com.googlecode.cswish.annotation.cm;

@Entity
public class BankCard {
	
	// 银行卡
	@cm("银行卡")
	public final static int CARTTYPE_BANK = 1;
	
	// 支付宝
	@cm("支付宝")
	public final static int CARTTYPE_ALIPAY = 2;
	
	// 微信 
	@cm("微信")
	public final static int CARTTYPE_WEIXIN = 3;
	
	// 中国银行
	@cm("中国银行")
	public static final String ISSUING_BOC = "BOC";
	
	// 中国工商银行
	@cm("中国工商银行")
	public static final String ISSUING_ICBC = "ICBC";
	
	// 中国建设银行
	@cm("中国建设银行")
	public static final String ISSUING_CCB = "CCB";
	
	// 中国农业银行
	@cm("中国农业银行")
	public static final String ISSUING_ABC = "ABC";
	
	// 招商银行
	@cm("招商银行")
	public static final String ISSUING_CMB = "CMB";
	
	@cm("平安银行")
	public static final String ISSUING_PAB = "PAB";

	private Integer id;
	
	// 姓名
	private String name;
	
	// 发卡行
	private String issuing;
	
	// 发卡行地址
	private String address;
	
	// 卡号
	private String cardNumber;
	
	// 账户类型1：银行卡 2：支付宝 3：微信
	private Integer cartType;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIssuing() {
		return issuing;
	}

	public void setIssuing(String issuing) {
		this.issuing = issuing;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public Integer getCartType() {
		return cartType;
	}

	public void setCartType(Integer cartType) {
		this.cartType = cartType;
	}
}
